package com.cloud.flowable.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.flowable.engine.task.Comment;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@Schema(name = "流程节点元素视图VO", description = "流程管理")
public class WfProcNodeVo implements Serializable {

    @Schema(description = "流程ID")
    private String procDefId;

    @Schema(description = "活动ID")
    private String activityId;

    @Schema(description = "活动名称")
    private String activityName;

    @Schema(description = "活动类型")
    private String activityType;

    @Schema(description = "活动耗时")
    private String duration;

    @Schema(description = "执行人Id")
    private Long assigneeId;

    @Schema(description = "执行人名称")
    private String assigneeName;

    @Schema(description = "候选执行人")
    private String candidate;

    @Schema(description = "任务意见")
    private List<Comment> commentList;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Schema(description = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

}
